#define _CRT_SECURE_NO_WARNINGS 1

#include"LinkedList.h"

int main() 
{
	//Initial Linked-List
	Node* head, * tail;
	head = CreateNode(0);
	tail = head;

	LLPushBack(&tail, 1);
	LLPushBack(&tail, 2);
	LLPushBack(&tail, 3);
	LLPushBack(&tail, 4);
	//LLPrint(&head);
	//LLPushFront(&head, 9);
	//LLPushFront(&head, 8);
	//LLPushFront(&head, 7);
	//LLPushFront(&head, 6);

	//LLPopBack(&head);
	//LLPopFront(&head);

	//Node* FIND = LLFind(head, 10);	
	//if (FIND == NULL)
	//{
	//	printf("Not Found\n");
	//}
	////printf("\n\n%d\n\n", FIND->data);

	Node* pos1 = LLFind(head, 3);
	//if (FIND == NULL)
	//{
	//	printf("Not Found\n");
	//}
	LLInsert(&head, 100, pos1);
	LLPrint(&head);

	Node* pos2 = LLFind(head, 100);
	//if (FIND == NULL)
	//{
	//	printf("Not Found\n");
	//}
	LLErase(&head, pos2);

	Node* pos3 = LLFind(head, 1);
	LLModify(3, pos3);

	LLPrint(&head);
}